package cn.middle.remote.config;

import cn.middle.remote.enums.NodeType;

public class ClientConfig {
	
private String usrname;
	
	private String password;
	
	private NodeType userType;
	
	private Integer clientId;
	
	private String remoteHost;
	
	private int remotePort;
	
	private int connectTimeout;
	
	private int threadNum;
	
	private boolean activeSSL;
	private SSLConfig sslConfig;
	

	public boolean isActiveSSL() {
		return activeSSL;
	}

	public void setActiveSSL(boolean activeSSL) {
		this.activeSSL = activeSSL;
	}

	public SSLConfig getSslConfig() {
		return sslConfig;
	}

	public void setSslConfig(SSLConfig sslConfig) {
		this.sslConfig = sslConfig;
	}

	public String getUsrname() {
		return usrname;
	}

	public void setUsrname(String usrname) {
		this.usrname = usrname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public NodeType getUserType() {
		return userType;
	}

	public void setUserType(NodeType userType) {
		this.userType = userType;
	}

	public Integer getClientId() {
		return clientId;
	}

	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}

	public String getRemoteHost() {
		return remoteHost;
	}

	public void setRemoteHost(String remoteHost) {
		this.remoteHost = remoteHost;
	}

	public int getRemotePort() {
		return remotePort;
	}

	public void setRemotePort(int remotePort) {
		this.remotePort = remotePort;
	}

	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public int getThreadNum() {
		return threadNum;
	}

	public void setThreadNum(int threadNum) {
		this.threadNum = threadNum;
	}

	@Override
	public String toString() {
		return "ClientConfig [usrname=" + usrname + ", password=" + password + ", userType=" + userType + ", clientId="
				+ clientId + ", remoteHost=" + remoteHost + ", remotePort=" + remotePort + ", connectTimeout="
				+ connectTimeout + ", threadNum=" + threadNum + "]";
	}
}
